package com.rental.model.vo.house;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class SubletHouseInfoVo {
    @Schema(description = "房屋id")
    private int id;

    @Schema(description = "用户头像")
    private String photo;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @Schema(description = "浏览次数")
    private int viewCount;

    @Schema(description = "房屋图片")
    private String imagesUrl;

    @Schema(description = "房屋标题")
    private String title;

    @Schema(description = "房屋位置")
    private String location;

    @Schema(description = "房屋经度")
    private BigDecimal longitude;

    @Schema(description = "房屋纬度")
    private BigDecimal latitude;

    @Schema(description = "房屋租金")
    private BigDecimal rent;

    @Schema(description = "押金方式")
    private String payType;

    @Schema(description = "租期")
    private Integer tenancyTerm;

    @Schema(description = "房屋户型")
    private String structure;

    @Schema(description = "入住情况")
    private Integer occupancy;

    @Schema(description = "男性人数")
    private String male;

    @Schema(description = "女性人数")
    private String female;

    @Schema(description = "地铁")
    private String nearbyStation;

    @Schema(description = "合约到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

    @Schema(description = "可入住时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date moveTime;

    @Schema(description = "房屋情况与优点")
    private String introduce;

    @Schema(description = "租客要求")
    private String renterRequire;

    @Schema(description = "房东情况")
    private String landlord;

    @Schema(description = "房屋参观时间")
    private String visitingTime;

    @Schema(description = "是否收藏:0未收藏,1已收藏")
    private Integer isCollected;

    @Schema(description = "上下架状态：0下架1上架")
    private Integer state;

    @Schema(description = "举报数")
    private Integer accusation;
}
